package com.briup.cms.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.briup.cms.bean.Category;
import com.briup.cms.bean.extend.CategoryExtend;

import java.util.List;

/**
 * @BelongsProject: CMS
 * @BelongsPackage: com.briup.cms.service
 * @Author: 韩振阳
 * @CreateTime: 2024-11-22  17:07
 * @Description: TODO
 * @Version: 1.0
 */
public interface ICategoryService {
    void insert(Category category);

    Category getCategoryById(Integer id);

    void update(Category category);

    void deleteById(Integer id);

    void deleteInBatch(List<Integer> ids);

    IPage<Category> query(Integer pageNum, Integer pageSize, Integer parentId);

    List<Category> queryAllOneLevel();

    //批量插入栏目【excel导入栏目时用到】
    void insertInBatch(List<Category> list);

    List<CategoryExtend> queryAllParent();
}
